/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.sf.stylestudio.uml.designer;

import java.awt.Font;

/**
 *
 * @author Sabuj Das
 */
public interface DesignerConstants {

    public final class Fonts {

        private Fonts() {
            throw new UnsupportedOperationException("Oooops....");
        }

        private static final Font CODE_FONT_BOLD;

        static {
            synchronized (Fonts.class) {
                Font codeBoldFont = new Font(Font.MONOSPACED, Font.PLAIN, 12);
                try {
                    codeBoldFont = Font.createFont(Font.TRUETYPE_FONT,
                            Fonts.class.getResourceAsStream("/fonts/VeraMoBd.ttf"));
                } catch (Exception e) {
                    // ignore
                }
                CODE_FONT_BOLD = codeBoldFont.deriveFont(Font.ITALIC + Font.BOLD, 13.5F);
            }
        }

        public static Font getCodeBoldFont() {
            return CODE_FONT_BOLD;
        }
    }
}
